import request from "@/utils/request";
// 查看实物订单列表
export function orderList(query) {
  return request({
    url: "/cancel/order/list",
    method: "get",
    params: query,
  });
}
// // 查看详情
// export function orderListId(query) {
//   return request({
//     url: "/cardMall/admin/v1/order/queryList",
//     method: "get",
//     params: query,
//   });
// }
// 导出
export function residentexportOrder(data) {
  return request({
    url: "/cardMall/admin/v1/order/exportOrder",
    method: "post",
    params: data,
  });
}
// 发货
export function ordership(data) {
  return request({
    url: "/cancel/order/sendOrder",
    method: "post",
    data,
  });
}

//查看详情
export function showOrderDetail(query) {
  return request({
    url: "/cancel/order/showOrderDetail",
    method: "get",
    params: query,
  });
}
//退款
export function refundOrder(data) {
  return request({
    url: "/cancel/order/refundOrder",
    method: "post",
    data,
  });
}
